package TCPUDP;

import java.io.IOException;
import java.net.*;
import java.util.Scanner;

public class Mytest1 {

    public static void main(String[] args) throws IOException {

        Scanner sc = new Scanner(System.in);

        DatagramSocket ds = new DatagramSocket();

        while (true) {
            String s = sc.next();
            byte[] bytes = s.getBytes();

            InetAddress inetAddress = InetAddress.getByName("127.0.0.1");
            DatagramPacket dp = new DatagramPacket(bytes,bytes.length,inetAddress,10000);

            ds.send(dp);
        }

    }
}
